package org.dromara.Nyt7RegionManagement.domain.bo;

import org.dromara.Nyt7RegionManagement.domain.Nyt7RegionManagement;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 区域管理业务对象 nyt_7_region_management
 *
 * @author Lion Li
 * @date 2024-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Nyt7RegionManagement.class, reverseConvertGenerate = false)
public class Nyt7RegionManagementBo extends BaseEntity {

    /**
     * 区域id
     */
    @NotNull(message = "区域id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 上级区域id
     */
    @NotNull(message = "上级区域id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pid;


    /**
     * 区域名称
     */
    @NotBlank(message = "区域名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;



    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;


    /**
     *
     */
    @NotNull(message = "地区等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long level;


}
